/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const productRouter = {
  path: '/fund',
  component: Layout,
  redirect: 'noRedirect',
  hidden:true,
  name: '基金',
  meta: {
    title: '基金',
    icon: 'money'
  },
  children: [
    {
      path: 'main',
      component: () => import('@/views/fund/main'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'product',
      component: () => import('@/views/fund/product/product'),
      name: '产品',
      hidden:true,
      meta: { title: '产品'}
    },
    {
      path: 'product-add',
      component: () => import('@/views/fund/product/product-add'),
      name: '产品',
      hidden:true,
      meta: { title: '产品'}
    },
    {
      path: 'product-detail',
      component: () => import('@/views/fund/product/product-detail'),
      name: '产品',
      hidden:true,
      meta: { title: '产品'}
    },
    {
      path: 'product-report',
      component: () => import('@/views/fund/product/product-report'),
      name: '产品',
      hidden:true,
      meta: { title: '产品'}
    },
    {
      path: 'order',
      component: () => import('@/views/fund/order/order'),
      name: '订单',
      hidden:true,
      meta: { title: '订单'}
    },
    {
      path: 'order-detail',
      component: () => import('@/views/fund/order/order-detail'),
      name: '订单',
      hidden:true,
      meta: { title: '订单'}
    },
    {
      path: 'position',
      component: () => import('@/views/fund/position/position'),
      name: '交易流水',
      hidden:true,
      meta: { title: '交易流水'}
    },
    {
      path: 'position-add',
      component: () => import('@/views/fund/position/position-add'),
      name: '新交易流水',
      hidden:true,
      meta: { title: '新交易流水'}
    },
    {
      path: 'position-detail',
      component: () => import('@/views/fund/position/position-detail'),
      name: '交易流水明细',
      hidden:true,
      meta: { title: '交易流水明细'}
    },
    {
      path: 'inventory',
      component: () => import('@/views/fund/inventory/inventory'),
      name: '库存',
      hidden:true,
      meta: { title: '库存'}
    },
    {
      path: 'inventory-add',
      component: () => import('@/views/fund/inventory/inventory-add'),
      name: '新库存',
      hidden:true,
      meta: { title: '新库存'}
    },
    {
      path: 'inventory-detail',
      component: () => import('@/views/fund/inventory/inventory-detail'),
      name: '库存明细',
      hidden:true,
      meta: { title: '库存明细'}
    }
  ]
}

export default productRouter
